import { XML } from 'mixly';
import PICO_CONFIG_TEMPLATE from '../templates/html/board-config-message.html';

export const ZhHansMsg = {};

ZhHansMsg.PICO_CONFIG_INTRODUCE = '详细介绍请参考';

ZhHansMsg.PICO_CONFIG_MESSAGE_flash = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '闪存大小',
    message: '此选项用于选择闪存大小。通过指定为文件系统分配的大小来控制。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#flash-size',
    name: '#Flash Size'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_freq = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'CPU时钟频率',
    message: '在此选项上,你可以选择CPU时钟频率。如果在更高的位置失败,在插入时按住BOOTSEL以进入更新模式并尝试 更低的超频。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#cpu-speed',
    name: '#CPU Speed'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_usbstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'USB堆栈',
    message: '此选项默认更简单的Pico-SDK版本USB堆栈, 包含基于USB的串口, 以及支持自动复位上传。如果你需要启用更强大的USB堆栈, 请选择Adafruit TinyUSB,但是请您必须在TinyUSB程序中包含TinyUSB库。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/usb.html#usb-arduino-and-adafruit-tinyusb',
    name: '#USB Stack'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_dbgport = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '调试端口',
    message: '选择所需的调试端口用于核心的调试消息可以打印到串行端口。为调试输出选择端口不会阻止草图使用它 用于正常操作。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-port',
    name: '#Debug Port'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_dbglvl = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '调试级别',
    message: '通过直接添加所需的构建再次完成标志。 当你想要定义多个构建标志时，必须将它们累积在单行或换行符分隔的表达式。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#debug-level',
    name: '#Debug Level'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_ipbtstack = XML.render(PICO_CONFIG_TEMPLATE, {
    title: 'IP/Bluetooth堆栈',
    message: '此选项上默认IPV4。IP堆栈不仅支持IPV4, 另外支持IPV6; Bluetooth堆栈支持蓝牙经典(BTC)和蓝牙低功耗(BLE), 请根据你的实际情况配置。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/platformio.html#ip-stack',
    name: '#IP/Bluetooth Stack'
});

ZhHansMsg.PICO_CONFIG_MESSAGE_uploadmethod = XML.render(PICO_CONFIG_TEMPLATE, {
    title: '上传方式',
    message: '此选项用于选择特定的上传方式用于上传程序。如果你已经构建好相应的上传环境，请根据实际情况配置此选项。如果你不知道如何配置此项，请保留默认选项。',
    moreInfo: ZhHansMsg.PICO_CONFIG_INTRODUCE,
    href: 'https://arduino-pico.readthedocs.io/en/latest/install.html#uploading-sketches-with-picotool',
    name: '#Upload Method'
});

export const ZhHansCatgories = {
    'catUsb': 'USB串行'
};